﻿using Windows.Admin.Domain;
using Windows.Infrastructure.Share.CustomException;
using Windows.Service.Share;

namespace Windows.Admin.Service
{
    public interface IPostService
    {
        /// <summary>
        /// 获取岗位列表基础资料
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<PostResponse>> GetBasicPosts(IdsRequest request);
        /// <summary>
        /// 岗位视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<PostResponse>> Query();
        /// <summary>
        /// 获取id的岗位详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<PostResponse> Detail(int id);
        /// <summary>
        /// 岗位保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(PostSaveRequest request);
        /// <summary>
        /// 岗位删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
       Task Remove(long id);
    }
    
}
